home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
src
/
X11
/
wais
/
ui
/
Makefile.00
< prev
next >
Wrap
Makefile
|
1995-05-09
|
5KB
|
219 lines
#
# UI's for the WAIS system
# -brewster 2/91
#
# $Log: Makefile,v $
# Revision 5.1 1992/07/10 23:09:59 curtisg
# Distributed version
#
# Revision 1.13 92/03/17 14:28:09 jonathan
# Updated for new library schemes.
#
# Revision 1.12 92/02/15 19:54:54 jonathan
# Added $Log for RCS. Updated VERSION
#
#
# added waisq
# - Jonny G 2/91
# added swais (screen-ui)
# - jcurran 6/91
# Common customizations:
# for the NEXT machine, HP machines, or old BSD cc, see cflags
SHELL=/bin/sh
VERSION = 84
LIBDIR = ../lib
BINDIR = ../bin
# command name for a simple shell interface
SHELL_UI_CMD = waissearch
SHELL_UI_SIG_CMD = waissearch-sig
SHELL_UTIL_CMD = waisq
SCREEN_UI_CMD = swais
# For a smaller client, but with no local search,
# use this line this to:
# IR_LIB = ../bin/client.a
IR_LIB = $(LIBDIR)/libinv.a
SIG_LIB = $(LIBDIR)/libsig.a
PROTOCOL_LIB = $(LIBDIR)/libwais.a
UI_LIB = $(LIBDIR)/libui.a
#UI_LIB = $(IR_LIB) $(PROTOCOL_LIB)
UI_SIG_LIB = ../ir/seeker_dummy.o $(SIG_LIB) $(PROTOCOL_LIB)
PROTDIR = ../ir
SRCDIR = ./
AR = ar
ARFLAGS = r
# on SGIs, set this to true
RANLIB = true
RM = /bin/rm -f
INSTALL = cp
#
# Files.
#
# List of source files for saber.
SHELL_UI_OBJ= shell-ui.o
SCREEN_UI_OBJ= screen-ui.o
#
# Compilation.
#
# C Compiler. Use either cc or gcc.
CC = cc
# Compiler & linker flags.
# Compiler debug flag. Use -g for debugging, -O for optimization.
# for antique bsd add -DBSD
# for XENIX add -M3e -Zi
CFLAGS = -g -I$(PROTDIR) -I$(LIBDIR) -DTELL_USER
# this is for SunOS 4.X
# LFLAGS = -Bstatic
# dealing with taking an intenet name and resolving it.
# set to -lresolv or nothing
#RESOLVER= -lresolv
RESOLVER = -lsocket
FTWLIB = $(LIBDIR)/libftw.a
SCREENLIBS = -lcurses -ltermcap
SCREENLIBS = -lcurses
default: $(SHELL_UI_CMD) $(SHELL_UTIL_CMD) $(SCREEN_UI_CMD) wais.el
QUES = waisq.c
# objects for libui.a
LIBUI_OBJ = document.o source.o wais-ui.o question.o
QOBJ = waisq.o \
question.o \
wais-ui.o \
document.o
SOBJ = screen-ui.o \
question.o \
wais-ui.o \
document.o
OBJS = util.o \
source.o
SSRC = screen-ui.c \
question.c \
document.c \
wais-ui.c
QSRC = waisq.c \
question.c \
document.c \
wais-ui.c
SRC = util.c \
source.c
$(IR_LIB):
(cd ../ir;make ${IR_LIB})
$(SIG_LIB):
(cd ../ir;make ${SIG_LIB})
$(PROTOCOL_LIB):
(cd ../ir;make ${PROTOCOL_LIB})
$(UI_LIB): $(LIBUI_OBJ)
$(AR) $(ARFLAGS) $@ $(LIBUI_OBJ)
$(RANLIB) $@
$(SHELL_UTIL_CMD): $(QOBJ) $(OBJS) $(IR_LIB) $(PROTOCOL_LIB)
$(RM) $@; \
$(CC) $(LFLAGS) -o $@ $(QOBJ) $(OBJS) \
$(IR_LIB) $(PROTOCOL_LIB) $(LIBS) $(FTWLIB) -lm $(RESOLVER)
$(SHELL_UI_CMD): $(SHELL_UI_OBJ) $(IR_LIB) $(PROTOCOL_LIB)
$(RM) $(SHELL_UI_CMD); \
$(CC) $(CFLAGS) $(LFLAGS) -o $(SHELL_UI_CMD) \
$(SHELL_UI_OBJ) \
$(IR_LIB) $(PROTOCOL_LIB) $(FTWLIB) -lm $(RESOLVER);
$(SHELL_UI_SIG_CMD): $(SHELL_UI_OBJ) $(UI_SIG_LIB)
$(RM) $(SHELL_UI_SIG_CMD); \
$(CC) $(CFLAGS) $(LFLAGS) -o $(SHELL_UI_SIG_CMD) \
$(SHELL_UI_OBJ) \
$(UI_SIG_LIB) $(FTWLIB) -lm $(RESOLVER);
$(SCREEN_UI_CMD): $(SOBJ) $(OBJS) $(IR_LIB) $(PROTOCOL_LIB)
$(RM) $@; \
$(CC) $(CFLAGS) $(LFLAGS) -o $@ \
$(SOBJ) $(OBJS) \
$(IR_LIB) $(PROTOCOL_LIB) $(SCREENLIBS) \
$(FTWLIB) -lm $(RESOLVER);
#
# Saber loading. Tuned for Saber 3.0
#
screen_ui_src: $(IR_LIB) $(PROTOCOL_LIB) $(SCREEN_UI_SRC) $(SSRC) $(SRC)
#suppress 53
#suppress 530
#suppress 529
#suppress 558
#suppress 590
#load -I../ir/ $(IR_LIB) $(PROTOCOL_LIB) $(SSRC) $(SRC)
#load /usr/lib/libm.a /usr/lib/libcurses.a /usr/lib/libtermcap.a
shell_ui_src: $(IR_LIB) $(PROTOCOL_LIB) $(SHELL_UI_SRC)
#suppress 53
#suppress 530
#suppress 529
#suppress 558
#suppress 590
#load $(CFLAGS) $(SHELL_UI_SRC) $(IR_LIB) $(PROTOCOL_LIB)
#load /usr/lib/libm.a
waisq_src: $(SRC) $(QSRC)
#suppress 53
#suppress 530
#suppress 529
#suppress 558
#suppress 590
#load -I../ir/ $(SRC) $(QSRC)
#load /usr/lib/libm.a
wais.el: wais.el.raw
./fix-gmacs.sh wais.el
install: $(SHELL_UI_CMD) $(SHELL_UTIL_CMD) $(SCREEN_UI_CMD)
-rm -f $(BINDIR)/$(SHELL_UI_CMD)
$(INSTALL) $(SHELL_UI_CMD) $(BINDIR)/$(SHELL_UI_CMD)
-rm -f $(BINDIR)/$(SHELL_UTIL_CMD)
$(INSTALL) $(SHELL_UTIL_CMD) $(BINDIR)/$(SHELL_UTIL_CMD)
-rm -f $(BINDIR)/$(SCREEN_UI_CMD)
$(INSTALL) $(SCREEN_UI_CMD) $(BINDIR)/$(SCREEN_UI_CMD)
# Remove objects and library.
clean:
$(RM) *.o
$(RM) *.sbin *.sbin3
$(RM) *~
$(RM) \#*\#
$(RM) .nfs* # NFS Lossage
$(RM) wais.elc wais.el
$(RM) $(SHELL_UI_CMD)
$(RM) $(SHELL_UI_SIG_CMD)
$(RM) $(SHELL_UTIL_CMD)
$(RM) $(SCREEN_UI_CMD)
$(RM) core